using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAO;
using DTO;
namespace BUS
{
   public class TheDocGiaBUS
    {
       public bool ThemTheDocGia_BUS(TheDocGiaDTO theDocGiaDTO)
       {
           TheDocGiaDAO theDocGiaDAO = new TheDocGiaDAO();
           return theDocGiaDAO.ThemTheDocGia_DAO(theDocGiaDTO);

       }
       public DataTable LayDanhSachTheDocGia_BUS()
       {
           DataTable kq = new DataTable();
           TheDocGiaDAO theDocGiaDAO = new TheDocGiaDAO();
           kq=theDocGiaDAO.laydsthedocgia_DAO();
           return kq;
       }
       public static bool CapNhatTheDocGia_BUS(TheDocGiaDTO tdgDTO)
       {
           return TheDocGiaDAO.CapNhatTheDocGia_DAO(tdgDTO);
       }
       public static bool XoaTheDocGia_BUS(int id)
       {
           return TheDocGiaDAO.XoaTheDocGia_DAO(id);
       }
       public static DataTable TimTheDocGiaTheoTen_BUS(string ten)
       {
           return TheDocGiaDAO.TimTheDocGiaTheoTen_DAO(ten);
       }
    }
}
